home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: MegaDisc / MegaDisc 24 (1991-10)(MegaDisc Digital Publishing)(AU)(Disk 1 of 2)[WB].zip / MegaDisc 24 (1991-10)(MegaDisc Digital Publishing)(AU)(Disk 1 of 2)[WB].adf / REVIEWS / AZ_PD_Editor / AZ_PD_Editor
Text File  |  1991-09-26  |  12KB  |  245 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                     Review of Az 1.5 - Text Editor 
  7.  
  8.                             by D. Hooton
  9.  
  10.  
  11.  
  12.     ## 24 ## 24 ## 24 ## 24 ## 24 ## 24 ## 24 ## 24 ## 24 ## 24 ## 24 ##
  13.  
  14.  
  15.     There are a number of good text editors available in the Public Domain
  16.   (PD) to suit just about every taste, e.g. Hed, Jed, Qed, Uedit, DME,
  17.   MicroGNUEmacs, Az, and others I can't remember. My first editor was Ed,
  18.   the infamous Amiga standard. When I sampled TxEd, it was goodbye to Ed
  19.   and the start of a long-lasting relationship. TxEd was small, had
  20.   multiple windows, colour cycling, mouse with keyboard equivalents...
  21.   and did everything I wanted! But I still flirted around with others -
  22.   short-lived affairs for the most part. Some were too big or too
  23.   complex.  Some were nice!
  24.  
  25.     Perhaps its total configurability finally won me over to DME. But it
  26.   needed to be crunched to live in my memory, and it would be the first
  27.   thing to go if space was needed for a compilation project - which for a
  28.   long time was MicroGNUEmacs, or Mg for short. I took Mg1b apart and
  29.   made changes until it was somewhere near workable - I hated the keyboard
  30.   mapping because it was very inefficient with memory. Mg3a fixed that,
  31.   but it was more complex. DME was used when I wasn't fooling with Mg.
  32.  
  33.     After I got the 2 MB memory expansion, I was looking through some
  34.   scribbled notes and came upon a comparison between DME and Az - mainly
  35.   memory usage and load times. But hey! They were very similar. Why not
  36.   try it again. Hmmmm! Great ... very Amiga-ised. I think I had
  37.   ignored it because the keyboard shortcuts were too dissimilar to TxEd.
  38.   But now I use a text processor - Text Plus - and its keys are very
  39.   similar!
  40.  
  41.    What does it offer?
  42.  
  43.     Its on-screen appearance is good. It makes good use of Intuition and
  44.   graphics for presentation and scrolling. The title bar contains the
  45.   close gadget, current line number, total number of lines, column number,
  46.   the hex value of the character under the cursor, indicators for
  47.   insert/overstrike and case sensitivity and text-modified, filename,
  48.   iconify gadget, size toggle gadget and front/back gadgets! The size
  49.   toggle gadget will expand/shrink the window to the largest/smallest size
  50.   you chose with the Intuition size gadget.
  51.  
  52.    Editing
  53.  
  54.     The cursor keys or the mouse may be used to position the cursor, with
  55.   the option of entering text in insert mode (the default) or overstrike
  56.   mode. Marking text may be performed with the menu, the keyboard or the
  57.   mouse. The most flexible way is to click the left mouse button (LMB)
  58.   and drag it to mark a phrase, a line or a block. Or double-click and
  59.   drag a word-at-a-time. Or triple-click and drag a line-at-a-time. Then
  60.   use the menu or its keyboard shortcut to Copy or Cut the text, which is
  61.   always saved to a clipboard.
  62.  
  63.     After COPY or CUT you have to use PASTE to put the text where you want
  64.   it. CUT and PASTE is equivalent to moving the text from one place to
  65.   another. COPY and PASTE duplicate the text somewhere else.
  66.  
  67.    Finally, there are commands to select one word or ALL text in the file.
  68.  
  69.    ClipBoards
  70.  
  71.     Firstly, Az uses the Amiga clipboard.device - so make sure CLIPS: is
  72.   assigned to an appropriate subdirectory eg. I use Assign CLIPS: ram:T.
  73.   Secondly, Az uses two clipboards, and you need to know which one is used
  74.   in a particular operation. The commands I have already mentioned use
  75.   Clipboard 0 ie. COPY to clipboard 0, PASTE from Clipboard 0. If you
  76.   marked a block and hit the Delete key, it would be copied to Clipboard 1
  77.   and removed. PASTE would not recover that text, and you might think
  78.   there was a bug in the program because it will return some other text
  79.   most times (depending what is in Clipboard 0!). You must use UNDEL
  80.   BLOCK (undelete block) in this case. A line may be deleted by using
  81.   Shift + Delete, and can only be recovered with UNDEL BLOCK. A single
  82.   character cannot be recovered if deleted.
  83.  
  84.     So if you forgot how you removed a block....try both ways!
  85.  
  86.    Getting Data In
  87.  
  88.     The OPEN and NEW WINDOW commands will allow you to get a new file via
  89.   a file requester which has a few unusual features eg. STOP will prevent
  90.   the current directory being read and SCAN will force a directory to be
  91.   re-read. Also, there is a partial selection facility which highlights
  92.   the file that most closely matches the key strokes you enter.  The
  93.   annoying part is that the filename string is cleared whenever a new
  94.   directory is chosen and when the requester is put up. So a SAVE AS
  95.   operation involves unnecessary typing.
  96.  
  97.     OPEN will copy the file into the current window whilst NEW WINDOW will
  98.   create a window for the file.
  99.  
  100.     Text may also be copied from a file to the clipboard and then inserted
  101.   into the document with PASTE. This dual operation, thankfully, may be
  102.   shortcut via a function key operation called INSERT FILE.
  103.  
  104.     Binary files may be loaded and viewed through a LOAD BINARY operation.
  105.   But it wouldn't be safe to save them because Az removes spaces from the
  106.   end of a line.
  107.  
  108.    Data Out
  109.  
  110.     The usual operations of SAVE and SAVE AS are provided, the latter
  111.   allowing you to change the name of the file being saved. Data in
  112.   Clipboard 0 may be saved to a file with the PASTE TO FILE command or
  113.   selected (marked) data can be saved by SAVE SELECTED - all with the help
  114.   of the file requester. In addition selected data may be printed or sent
  115.   to the serial port, both using parameters set in Preferences.
  116.  
  117.    Find and Replace
  118.  
  119.     Operations to find and replace text are implemented somewhat
  120.   differently to what I would expect, but are quite flexible.
  121.  
  122.     A requester is issued for FIND, and although it asks for a "pattern",
  123.   it only searches for the literal characters entered. Then it marks the
  124.   found string and the only (safe!) way to unmark it is to click the LMB.
  125.   The search may be continued until a requester pops up saying that it
  126.   cannot be found! Search backward is allowed, and a search may alternate
  127.   between forward and backward with ease. A search string may be
  128.   specified by marking text and using FIND SELECTED. Very useful!
  129.  
  130.     Replace is called EXCHANGE, and a requester pops up allowing entry of
  131.   both the Find string (still called a "pattern") and the Replace string.
  132.   When a string is found it is not replaced until either EXCHANGE NEXT or
  133.   EXCHANGE BACK or EXCHANGE ALL is chosen. Normally, the first string is
  134.   replaced and EXCHANGE NEXT does exactly that thereafter! You may see
  135.   this as a positive safety-first approach, but the choice of terminology
  136.   is misleading as is the shortcut (Amiga-R) for EXCHANGE NEXT!
  137.  
  138.     Case sensitivity for FIND can be toggled - a simple feature that all
  139.   editors should have (and that DME only got working in version 1.40!).
  140.  
  141.     FIND is slower across large files (>12000 bytes) than other editors -
  142.   it's noticeable but not objectionable.
  143.  
  144.    Tools Menu
  145.  
  146.    The Tools menu has the following (all with keyboard shortcuts):-
  147.     1. Iconify - shrinks the window so it can lodge in the title bar of the
  148.        screen with some of the file's name showing. Saves Chip memory in
  149.        particular (about 37k). Also available as a gadget in the title bar.
  150.     2. Go To Line - good for locating lines that compilers insist are in
  151.        error!
  152.     3. New Window - opens another window with a requester to select a file
  153.        for editing. As the executable code of AZ is re-entrant, this saves
  154.        memory compared to executing Az separately. Note that Az is not
  155.        Pure, and should not be made residentable.
  156.     4. Insert Hex - very handy. I would use it to insert form feeds for
  157.        printing. Or you can insert a special symbol eg. copyright.
  158.     5. Switch Case - changes the case of any marked text, or of a single
  159.        character under the cursor. Again, this is a feature I think all
  160.        text editors should have. This implementation is very flexible.
  161.     6. Execute Block - executes a block as AmigaDOS commands. Any results
  162.        are printed at the end of file. Starts with CD set to file requester
  163.        current directory and Path set to current directory C:. Possibly
  164.        useful, except that you may have to clean up after.
  165.     7. Match Brackets - very useful for 'C' programming where you want to
  166.        check the pairing of [] {} or (). It can be done for an individual
  167.        bracket pair or to check ALL bracket pairs in the file.
  168.  
  169.    Line Commands
  170.  
  171.     There is a CLONE LINE which reproduces the current line and a JOIN
  172.   LINES which puts a space on the end of the current line and adds the
  173.   following line starting with its first non-blank character. This can
  174.   also be done (in the reverse direction) with the Backspace key when the
  175.   cursor is at the start of the following line.
  176.  
  177.     The Return key in the middle of a line will produce a new line - and
  178.   not split the line as I would expect. Shift + Return is required for
  179.   this.  If the previous line is blank the cursor will go to the first
  180.   column, otherwise it will go to the position of the first non-blank
  181.   character.  NEW LINE or SPLIT LINE may be done with Enter instead of
  182.   Return and then a back-tab will be attempted.
  183.  
  184.    Cursor/Text Movement
  185.  
  186.     Again, cursor operation is somewhat different to what you might
  187.   expect.  The cursor keys work normally for movement through lines and
  188.   across characters, except when text is marked and then the text itself
  189.   will move or scroll. If the selection was line-at-a-time (triple
  190.   clicking) the block can be moved with the left/right keys or
  191.   Tab/Shift-Tab! Very useful to change indentation!
  192.  
  193.     There are commands for top and bottom of file, page up/down and
  194.   beginning/end of line. And the choice of shortcuts is reasonably
  195.   logical, involving keys that qualify the cursor keys.
  196.  
  197.     There are also scroll bars for horizontal and vertical movement, with
  198.   gadgets for both directions at BOTH ends of the scroll bar. The bar
  199.   itself can be dragged or clicked in two directions! A final feature of
  200.   scrolling the text is that the cursor position is not changed. If the
  201.   scroll takes the cursor outside the window, striking any key will return
  202.   the text with the cursor near the centre of the window! A cursor key
  203.   should be used as this will not change the text!
  204.  
  205.    Configuration
  206.  
  207.     Az is configurable through 15 options that may be specified on the
  208.   command line. Here is a partial list:-
  209.  
  210.       1. Colour  of text in titlebar and text areas.
  211.       2. Maximum length of line. Default is 256.
  212.       3. Execute commands before Az is loaded AND after it is unloaded. You
  213.          may want to assign CLIPS: and then deassign CLIPS:
  214.       4. Change font to any Topaz font (sizes 8/9/11).
  215.       5. Backup before saving a changed file.
  216.       6. Change Tab size.
  217.       7. Allow automatic indentation to depend on the last non-blank line
  218.          rather than the previous line.
  219.       8. Allow Save As to change the name of the file in the title bar.
  220.       9. Put the cursor at the start of the block (rather than the
  221.          end) after one has been inserted with Paste or Undel Block.
  222.      10. Change the defaults for insert/overstrike and case sensitivity.
  223.  
  224.     I would prefer a configuration file to this cumbersome method.
  225.   However, there are only three or four options I want to use, and I can
  226.   save them for use with my directory utility (DirWork). The only other
  227.   way to avoid repetitious typing is to use an Alias.
  228.  
  229.    Summary
  230.  
  231.     Az is a full-featured editor - perhaps the most Amiga-ised of a bunch
  232.   that includes Uedit, DME, Qed and Hed; particularly when it comes to
  233.   block operations. It does everything I required of DME or Uedit, and
  234.   with greater ease for the most part. It does not do everything that DME
  235.   or Uedit can do, but I prefer ease of operation to a large list of
  236.   possibilities.
  237.  
  238.    Highly recommended.
  239.  
  240.  
  241.     ## 24 ## 24 ## 24 ## 24 ## 24 ## 24 ## 24 ## 24 ## 24 ## 24 ## 24 ##
  242.  
  243.  
  244.  
  245.